package com.google.gwt.sample.hello.client.generated.business;

import java.util.Date;

import com.google.gwt.sample.hello.client.notgenerated.eventFramework.PropertyChangeSupport;

public class A {

	
	String name;
	Date dateNaissance;
	boolean mariee;
	
	PropertyChangeSupport<String> propertychangesupportname;
	PropertyChangeSupport<Boolean> propertychangesupportmariee;
	PropertyChangeSupport<Date> propertychangesupportdateNaissance;
	
	public void setPropertychangesupportdateNaissance(
			PropertyChangeSupport<Date> propertychangesupportdateNaissance) {
		this.propertychangesupportdateNaissance = propertychangesupportdateNaissance;
	}

	public void setPropertychangesupportmariee(
			PropertyChangeSupport<Boolean> proertychangesupportmariee) {
		this.propertychangesupportmariee = proertychangesupportmariee;
	}

	public void setPropertychangesupportname(
			PropertyChangeSupport<String> proertychangesupportname) {
		this.propertychangesupportname = proertychangesupportname;
	}

	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		if (propertychangesupportname != null)
			propertychangesupportname.firePropertyChange(this.name, name);
		System.err.println(name);
		this.name = name;
	}

	public Date getDateNaissance() {
		return dateNaissance;
	}

	public void setDateNaissance(Date dateNaissance) {
		if (propertychangesupportdateNaissance!=null)
			propertychangesupportdateNaissance.firePropertyChange(this.dateNaissance, dateNaissance);
		System.err.println(dateNaissance	);
		this.dateNaissance = dateNaissance;
	}
	public boolean isMariee() {
		return mariee;
	}
	public void setMariee(boolean mariee) {
		if (propertychangesupportmariee!=null)
			propertychangesupportmariee.firePropertyChange(this.mariee, mariee);
		System.err.println(mariee);
		
		this.mariee = mariee;
	}
}
